package com.hedd.shop.pojo.entity;

import io.swagger.annotations.ApiModel;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ludi
 * @date:2020/8/29 14:26
 * @description:商品类
 */
@ApiModel(value = "商品对象")
public class Product {
    private Integer productId;
    private String name;
    private String picture;
    private BigDecimal price;
    private Integer star;
    private String info;
    private Integer typeId;
    private Integer repertory;
    private Date creatTime;

    public Product() {
    }

    public Product(Integer productId, String name, String picture, BigDecimal price, Integer star,
                   String info, Integer typeId, Integer repertory, Date creatTime) {
        this.productId = productId;
        this.name = name;
        this.picture = picture;
        this.price = price;
        this.star = star;
        this.info = info;
        this.typeId = typeId;
        this.repertory = repertory;
        this.creatTime = creatTime;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getRepertory() {
        return repertory;
    }

    public void setRepertory(Integer repertory) {
        this.repertory = repertory;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", name='" + name + '\'' +
                ", picture='" + picture + '\'' +
                ", price=" + price +
                ", star=" + star +
                ", info='" + info + '\'' +
                ", typeId=" + typeId +
                ", repertory=" + repertory +
                ", creatTime=" + creatTime +
                '}';
    }
}
